$("#submitBtn").click(function() {
	var oAcc = $("input[name=account]");
	if (oAcc.val().trim().length == 0) {
		showMessage('warnMessage', '请输入用户名', true, 3);
		oAcc.focus();
		return;
	}
	var oPass = $("input[name=passwd]");
	if (oPass.val().trim().length == 0) {
		showMessage('warnMessage', '请输入密码', true, 3);
		oPass.focus();
		return;
	}
	var url = "userLogin.do";
	var para = getParams("frm1");
	$.get(url, para, function(data) {
		if (data == "vcode error") {
			showMessage('warnMessage', '验证码错误', true, 3);
		} else if (data == "userpass error") {
			showMessage('warnMessage', '用户名或密码错误', true, 3);
		} else if (data == "sys error") {
			showMessage('warnMessage', '系统发生错误，请重试', true, 3);
		} else if (data == "db error") {
			showMessage('warnMessage', '数据库发生错误', true, 3);
		} else if (data == "success") {
			location = "home.do";
		} else {
			showMessage('warnMessage', '发生错误', true, 3);
		}
	});
});